import request from '@/utils/request'

// 查询达人主页 /square_pc_api/homePage/author/profile列表
export function listHome(query) {
  return request({
    url: '/dr/home/list',
    method: 'get',
    params: query
  })
}

// 查询达人主页 /square_pc_api/homePage/author/profile详细
export function getHome(uid) {
  return request({
    url: '/dr/home/' + uid,
    method: 'get'
  })
}

// 新增达人主页 /square_pc_api/homePage/author/profile
export function addHome(data) {
  return request({
    url: '/dr/home',
    method: 'post',
    data: data
  })
}

// 修改达人主页 /square_pc_api/homePage/author/profile
export function updateHome(data) {
  return request({
    url: '/dr/home',
    method: 'put',
    data: data
  })
}

// 删除达人主页 /square_pc_api/homePage/author/profile
export function delHome(uid) {
  return request({
    url: '/dr/home/' + uid,
    method: 'delete'
  })
}
